package com.enki.adminplatform.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author marvin
 * @since 2021-07-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Menu对象",description = "菜单")
public class SysMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 父菜单ID，一级菜单为0
     */
    @ApiModelProperty(value = "父级菜单")
    private Long parentId;
    @ApiModelProperty(value = "菜单名称")
    private String name;

    /**
     * 菜单URL
     */
    @ApiModelProperty(value = "菜单路径")
    private String path;

    /**
     * 授权(多个用逗号分隔，如：user:list,user:create)
     */
    @ApiModelProperty(value = "权限名")
    private String perms;
    @ApiModelProperty(value = "页面路径")
    private String component;

    /**
     * 类型     0：目录   1：菜单   2：按钮
     */
    @ApiModelProperty(value = "类型")
    private Integer type;

    /**
     * 菜单图标
     */
    @ApiModelProperty(value = "菜单图标")
    private String icon;

    /**
     * 排序
     */
    @TableField("orderNum")
    @ApiModelProperty(value = "排序")
    private Integer ordernum;


}
